package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Setmeal;
import com.itheima.reggie.exception.BusinessException;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * setmeal业务层
 */
public interface SetmealService extends IService<Setmeal> {

    public void addSetmeal(SetmealDto setmealDto);

    Page listSetmeal(Integer page, Integer pageSize, String name);

    void deleteSetmeal(List<Long> ids) throws BusinessException;

    void changeStatus(List<Long> ids,Integer status);

    SetmealDto getSetmealById(Long id);

    void saveSetmeal(SetmealDto setmealDto);
}
